/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmPjournal extends BasicModel<PmPjournal> {
  createtime?: string; // 创建时间
  name?: string; // name
  content?: string; // 内容
  projectname?: string; // 项目名称
  projectno?: string; // 项目编号
  pname?: string; // 申请人
  pno?: string; // 申请人编号
  fileno?: string; // 图片
}

export const pmPjournalList = (params?: PmPjournal | any) =>
  defHttp.get<PmPjournal>({ url: adminPath + '/proj/log/pmPjournal/list', params });

export const pmPjournalListData = (params?: PmPjournal | any) =>
  defHttp.post<Page<PmPjournal>>({ url: adminPath + '/proj/log/pmPjournal/listData', params });

export const pmPjournalForm = (params?: PmPjournal | any) =>
  defHttp.get<PmPjournal>({ url: adminPath + '/proj/log/pmPjournal/form', params });

export const pmPjournalSave = (params?: any, data?: PmPjournal | any) =>
  defHttp.postJson<PmPjournal>({ url: adminPath + '/proj/log/pmPjournal/save', params, data });

export const pmPjournalDelete = (params?: PmPjournal | any) =>
  defHttp.get<PmPjournal>({ url: adminPath + '/proj/log/pmPjournal/delete', params });
